package com.zhang.zxx.easyexcel.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * IndexUser:
 * value: 设置Excel中列头的名字 index: 设置Excel中将数据插入指定的列(列排序) eg: value="姓名" index=2 :
 * 将姓名的列头设置在Excel表格的第三列
 *
 * @author zhangxiaoxiang
 * @date 2021/1/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class IndexUser {
    /**
     * 注意index的值
     */
    @ExcelProperty(value = "用户编号", index = 0)
    private Integer userId;
    @ExcelProperty(value = "姓名", index = 2)
    private String userName;
    @ExcelProperty(value = "入职时间", index = 1)
    private Date hireDate;
}